{include admin.inc.header}

{include admin.inc.top}

<div class="container-fluid content-body">
	<div class="main">
		{include admin.inc.menu}

		<section class="right-section" id="right-section">
			<!-- start of inner-frame -->
			<div class="inner-iframe">
				<ul class="breadcrumb">
					<li>
						<i class="glyphicon glyphicon-home"></i>
						<span>当前位置：</span>
						<a href="#">{$breadcrumb[0]}</a>
						<i class="glyphicon glyphicon-chevron-right"></i>
						<a href="#">{$breadcrumb[1]}</a>
					</li>
				</ul>

				<!-- Nav tabs -->
				<!-- Nav tabs -->
				<ul class="nav nav-tabs">
					<li><a href="{$add_url}"><i class="glyphicon glyphicon-plus"></i> 会员注册</a></li>
					<li><a href="{$index_url}"><i class="glyphicon glyphicon-th-list"></i> 会员列表</a></li>
					<li class="active"><a href="javascript:void(0);"><i class="glyphicon glyphicon-edit"></i> 会员编辑</a></li>
				</ul>

				<div class="inner-container">

					<form role="form" class="content-add-form form-horizontal" id="content-add-form" autocomplete="off">
						<div class="form-group">
							<label class="col-sm-2 control-label"><span class="asterisk">*</span> 手机号码</label>
							<div class="col-sm-10">
								<input type="text" dtype="mobile" class="form-control" value="{$item[username]}" maxlength="11" disabled/>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label"><span class="asterisk">*</span> 姓名</label>
							<div class="col-sm-10">
								<input type="text" name="data[contacter]" value="{$item[contacter]}"  class="form-control" min-length="2" maxlength="15" placeholder="联系人" required />
								<p class="help-block">至少两个字符</p>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label"><span class="asterisk">*</span> 性别</label>
							<div class="col-sm-10">
								<div>
									<label class="icheck-label"><input type="radio" name="data[sex]" value="0" class="icheck" {if $item[sex]==0}checked{/if}> 先生</label>
									<label class="icheck-label"><input type="radio" name="data[sex]" value="1" class="icheck" {if $item[sex]==1}checked{/if}> 女士</label>
								</div>
								<p class="help-block"></p>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">邮箱</label>
							<div class="col-sm-10">
								<input type="text" name="data[email]" value="{$item[email]}" maxlength="50" class="form-control" placeholder="邮箱" />
								<p class="help-block"></p>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">QQ</label>
							<div class="col-sm-10">
								<input type="text" name="data[qq]" value="{$item[qq]}"maxlength="20" class="form-control" placeholder="QQ" />
								<p class="help-block"></p>
							</div>
						</div>

						<input type="hidden" name="id" value="{$item[id]}">

						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<div class="btn-group btn-group-or">
									<a href="{$update_url}" class="btn btn-primary ajaxproxy"
									   proxy='{"method":"post", "location":"{$index_url}"}'>提交保存</a>
									<span class="or">OR</span>
									<button type="reset" class="btn btn-default">重置表单</button>
								</div>
							</div>
						</div>

					</form>

				</div><!-- end of inner container -->

			</div><!-- end of inner frame-->

		</section>

	</div>
</div>

{include admin.inc.footer}

<script>
	seajs.use("user", function(exports) {
		exports.init({
			prov : '{$company[prov]}',
			city : '{$company[city]}',
			dist : '{$company[dist]}',
		});
		exports.upload();
	});
</script>
</body>
</html>
